<?php if(!defined('BASEPATH')) exit('No direct script access allowed!');

define('LIBRARIANS_URL', 'return ' . 
	var_export(array(
		'home' => anchor('librarian/landings/info', 'Beranda'),
		'info' => anchor('librarian/landings/info', 'Info Pribadi'),
		'book/index' => anchor('librarian/book/index', 'Daftar Buku'),
		'book/add' => anchor('librarian/book/add', 'Tambah Buku'),
		'transaction' => anchor('librarian/transaction/rent', 'Transaksi'),
		'transaction/rent' => anchor('librarian/transaction/rent', 'Peminjaman'),
		'transaction/lease' => anchor('librarian/transaction/lease', 'Pengembalian'),
		'report' => anchor('librarian/report/rent', 'Laporan'),
		'report/rent' => anchor('librarian/report/rent', 'Peminjaman'),
		'report/late' => anchor('librarian/report/late', 'Keterlambatan'),
		'report/popular' => anchor('librarian/report/popular', 'Populer'),
		'report/unpopular' => anchor('librarian/report/unpopular', 'Tidak Populer'),
		'change_password' => anchor('librarian/landings/change_password', 'Ganti Password'),
	), true) . ';');

function librarians_url($key) {
	$librarians_url = eval(LIBRARIANS_URL);
	return $librarians_url[$key];
}

